package com.xjm.enums;

/**
 * 响应状态枚举
 */
public enum StatusEnum {

    Success(200,"请求成功"),
    MERGE(206,"文件合并中"),
    Fail(400,"请求失败"),
    Unauthorized(401,"未授权"),
    Forbidden(403,"禁止访问"),
    NotFound(404,"请求地址不存在"),
    SystemError(500,"服务器错误");

    public final Integer code;
    public final String msg;

    StatusEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
